﻿@model Wheeler.Web.ViewModels.UtilityModels.ListConfig
@using Wheeler.Web.Utility;
@{    
	String pageTitle = "User List";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
	String editUrlFormat = Url.AdminUrl("Edit", "User") + "/{0}";
	///Bind User ListConfig
	///Following ListConfig binding needs to be edited according to the query result and need.
	Wheeler.Web.ViewModels.UtilityModels.ListConfig _ListConfig = Wheeler.Web.ViewModels.UtilityModels.ListConfig.Build(
        @"UserName {UserName}		
		, Active? {Active?}				
		, Group Name {Group Name}
		, Last Logged In {Last Logged In}"
        , Model.DataSource, true, editUrlFormat);

    ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = AdminMenu.ManageUser;
}
<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Add/Edit and manage User.
    </div>
</div>
<div class="jb-page-content">    
    <a href="@Url.AdminUrl("Edit", "User")">Add New User</a>
    @Html.Partial("_ListView", _ListConfig)
    @if (Model.Pager != null)
    {    
        @Html.Partial("_Pager", Model.Pager)
    }
</div>

    


